package cn.edu.hit.kg.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.Map;

public class Signal implements Serializable {
    private String featureType;
    private Map component;
    private Object value;
    @JsonIgnore
    private Object source;

    public Signal() {
    }

    public Signal(String featureType, Map component, Object value) {
        this.featureType = featureType;
        this.component = component;
        this.value = value;
    }

    public String getFeatureType() {
        return featureType;
    }

    public void setFeatureType(String featureType) {
        this.featureType = featureType;
    }

    public Map getComponent() {
        return component;
    }

    public void setComponent(Map component) {
        this.component = component;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Signal{" +
                "featureType='" + featureType + '\'' +
                ", component=" + component +
                ", value=" + value +
                '}';
    }

    public Object getSource() {
        return source;
    }

    public void setSource(Object source) {
        this.source = source;
    }
}
